using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._Raster._Math
{
    /// <summary>
    /// <para>Int</para>
    /// <para>Converts each cell value of a raster to an integer by truncation.</para>
    /// <para>通过截断将栅格的每个像元值转换为整数。</para>
    /// </summary>    
    [DisplayName("Int")]
    public class Int : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public Int()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_raster_or_constant">
        /// <para>Input raster or constant value</para>
        /// <para><xdoc>
        ///   <para>The input raster to be converted to integer.</para>
        ///   <para>To use a number as an input for this parameter, the cell size and extent must first be set in the environment.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>要转换为整数的输入栅格。</para>
        ///   <para>要使用数字作为此参数的输入，必须首先在环境中设置像元大小和范围。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_out_raster">
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output raster.</para>
        ///   <para>The cell values are the input values converted to integers by truncation.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出栅格。</para>
        ///   <para>单元格值是通过截断转换为整数的输入值。</para>
        /// </xdoc></para>
        /// </param>
        public Int(object _in_raster_or_constant, object _out_raster)
        {
            this._in_raster_or_constant = _in_raster_or_constant;
            this._out_raster = _out_raster;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "Int";

        public override string CallName => "3d.Int";

        public override List<string> AcceptEnvironments => ["autoCommit", "cellSize", "cellSizeProjectionMethod", "compression", "configKeyword", "extent", "geographicTransformations", "mask", "outputCoordinateSystem", "scratchWorkspace", "snapRaster", "tileSize", "workspace"];

        public override object[] ParameterInfo => [_in_raster_or_constant, _out_raster];

        /// <summary>
        /// <para>Input raster or constant value</para>
        /// <para><xdoc>
        ///   <para>The input raster to be converted to integer.</para>
        ///   <para>To use a number as an input for this parameter, the cell size and extent must first be set in the environment.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>要转换为整数的输入栅格。</para>
        ///   <para>要使用数字作为此参数的输入，必须首先在环境中设置像元大小和范围。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input raster or constant value")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_raster_or_constant { get; set; }


        /// <summary>
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output raster.</para>
        ///   <para>The cell values are the input values converted to integers by truncation.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出栅格。</para>
        ///   <para>单元格值是通过截断转换为整数的输入值。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_raster { get; set; }


        public Int SetEnv(int? autoCommit = null, object cellSize = null, object compression = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object mask = null, object outputCoordinateSystem = null, object scratchWorkspace = null, object snapRaster = null, double[] tileSize = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, cellSize: cellSize, compression: compression, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, mask: mask, outputCoordinateSystem: outputCoordinateSystem, scratchWorkspace: scratchWorkspace, snapRaster: snapRaster, tileSize: tileSize, workspace: workspace);
            return this;
        }

    }

}